package demo.listener.spring;

import org.springframework.context.ApplicationEvent;

// 引用关系：MyEventListener——MyCustomEvent
// 引用关系：MyEventPublisher——MyCustomEvent

public class MyCustomEvent extends ApplicationEvent {

    private String message;

    public MyCustomEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}